﻿namespace Canteen.Core.Models
{
    public class PageParameters
    {
        private int _pageSize = 10;

        public int Current { get; set; } = 1;
        public int PageSize
        {
            get { return _pageSize; }
            set { _pageSize = value <= 50 ? value : 50; }
        }
        public string Name { get; set; }
    }
}